package com.gxa.p2p.service;

import com.gxa.p2p.pojo.Activity;
import com.gxa.p2p.pojo.Activitylog;

import java.util.List;

/**
 * @author R
 * @data 2021-10-27 10:06
 */
public interface ActivityService {
    /**
     * 新人活动策略数据
     * @param page
     * @param size
     * @return
     */
    List<Activity> findNewActivityByPage(Integer page, Integer size);
    Integer findNewActivityCount(Integer page, Integer size);

    /**
     * 修改新人活动策略
     * @param activity
     */
    void updateNewActivity(Activity activity);

    /**
     * 查询签到活动策略
     * @param page
     * @param size
     * @return
     */
    List<Activity> findSignActivityByPage(Integer page,Integer size);
    Integer findSignActivityCount(Integer page, Integer size);

    /**
     * 修改新人签到策略
     * @param activity
     */
    void updateSignActivity(Activity activity);

    /**
     * 邀请活动相关操作
     * @param page
     * @param size
     * @return
     */
    List<Activity> findInviteActivityByPage(Integer page,Integer size);
    Integer findInviteActivityCount(Integer page,Integer size);
    void updateInviteActivity(Activity activity);

    /**
     * 查询活动发放记录
     * @param phone
     * @param name
     * @param event
     * @param state
     * @param from
     * @param to
     * @param page
     * @param size
     * @return
     */
    List<Activitylog> findActivityLogByPage(String phone, String name, String event, Boolean state, String from, String to, Integer page, Integer size);
    Integer findActivityLogCount(String phone, String name, String event, Boolean state, String from, String to, Integer page, Integer size);
}
